﻿//*** Guidance generated code ***//
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Web.Mvc;

namespace ProjectBase.Core.Diagnostics
{
    [ContractClassFor(typeof(IWriteFacade<,>))]
    internal abstract class WriteFacade<TEntity, TID> : IWriteFacade<TEntity, TID>
        where TEntity : class, IPersistentObjectWithTypedId<TID>
    {
        public event EventHandler Change
        {
            add
            {
                throw new NotImplementedException();
            }
            remove
            {
                throw new NotImplementedException();
            }
        }
        public TEntity CreateNew()
        {
            throw new NotImplementedException();
        }
        public TEntity Add(TEntity entity)
        {
            Contract.Requires(entity.Is(), "WriteFacade<T, TID> , method Add(), parameter 'entity' cannot be null");
            throw new NotImplementedException();
        }
        public TEntity Update(TEntity entity)
        {
            Contract.Requires(entity.Is(), "WriteFacade<T, TID> , method Update(), parameter 'entity' cannot be null");
            throw new NotImplementedException();
        }
        public void Delete(TEntity entity)
        {
            Contract.Requires(entity.Is(), "WriteFacade<T, TID> , method Delete(), parameter 'entity' cannot be null");
            throw new NotImplementedException();
        }

        #region inherited
        public IObjectBinder Binder
        {
            set { throw new NotImplementedException(); }
        }

        public bool BindEntity(TEntity entity, IValueProvider valueProvider, string prefix = null)
        {
            throw new NotImplementedException();
        }
        public bool BindEntity(TEntity entity, IValueProvider valueProvider, string prefix, IEnumerable<string> includeProperties, IEnumerable<string> excludeProperties = null)
        {
            throw new NotImplementedException();
        }
        #endregion

        #region IMessagesHolder Members

        public Messages Messages
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        #endregion
    }
}